package com.lsc.www.day09.hm;

import java.util.Scanner;

public class h4 {
    public static void main(String[] args) {
        System.out.println("输入数字：");
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        switch (a){

            case 0:
                System.out.println("黑色");
                break;
            case 1:
                System.out.println("蓝色");
                break;
            case 2:
                System.out.println("绿色");
                break;
            case 3:
                System.out.println("红色");
                break;
            case 4:
                System.out.println("黄色");
                break;
            default:
                System.out.println("请重新输入：");
                break;
        }
    }
}
